#ifndef __SQL_H__
#define __SQL_H__

#define FILEPATH_MAX (80)

struct sqlite3 *sql_stockinfo_init (char *name);
int insert_stocktable(struct sqlite3 *pdb,struct storage_info* sinfo);
int select_db(struct sqlite3 *pdb);
int delete_stocktable(struct sqlite3 *pdb, struct storage_info* sinfo);
int updata_stocktable(struct sqlite3 *pdb,struct storage_info* sinfo);
struct storage_info* select_stockdb(struct sqlite3 *pdb, struct storage_info * sinfo);
#endif
